<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{asignarMenu.page1}" id="page1">
            <ui:html binding="#{asignarMenu.html1}" id="html1">
                <ui:head binding="#{asignarMenu.head1}" id="head1">
                    <ui:link binding="#{asignarMenu.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{asignarMenu.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{asignarMenu.form1}" id="form1">
                        <div style="left: 0px; top: 0px; position: absolute">
                            <jsp:directive.include file="encab1.jspf"/>
                        </div>
                        <ui:label binding="#{asignarMenu.label1}" id="label1" style="color: rgb(108, 154, 154); left: 72px; top: 120px; position: absolute" text="ASIGNACIÓN DE MENUS"/>
                        <ui:label binding="#{asignarMenu.label2}" id="label2" style="left: 72px; top: 192px; position: absolute" text="Menú"/>
                        <ui:textField binding="#{asignarMenu.textField1}" id="textField1" readOnly="true"
                            style="left: 120px; top: 192px; position: absolute; text-decoration: underline; width: 183px" text="#{asignarMenu.sct0014DataProvider.value['SCT0014.DSCRPCION']}"/>
                        <ui:button action="#{asignarMenu.button1_action}" binding="#{asignarMenu.button1}" id="button1" mini="true" primary="true"
                            style="left: 167px; top: 168px; position: absolute; width: 72px" text="Regresar"/>
                        <ui:table augmentTitle="false" binding="#{asignarMenu.table1}" id="table1"
                            style="left: 72px; top: 240px; position: absolute; width: 372px" width="372">
                            <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                            <ui:tableRowGroup binding="#{asignarMenu.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                sourceData="#{asignarMenu.sct0021DataProvider}" sourceVar="currentRow">
                                <ui:tableColumn align="center" binding="#{asignarMenu.tableColumn1}" headerText="Menús que lo contienen" id="tableColumn1"
                                    sort="CDDOR" valign="middle" width="150">
                                    <ui:staticText binding="#{asignarMenu.staticText1}" id="staticText1" text="#{currentRow.value['CDDOR']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{asignarMenu.tableColumn2}" headerText="Numero Opción" id="tableColumn2" sort="TPO"
                                    valign="middle" width="60">
                                    <ui:staticText binding="#{asignarMenu.staticText2}" id="staticText2" text="#{currentRow.value['TPO']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{asignarMenu.tableColumn3}" headerText="Eliminar" id="tableColumn3" valign="middle" width="10">
                                    <ui:button action="#{asignarMenu.eliminarMenuButton_action}" binding="#{asignarMenu.eliminarMenuButton}"
                                        id="eliminarMenuButton" mini="true" text="Eliminar"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                        </ui:table>
                        <ui:table augmentTitle="false" binding="#{asignarMenu.table2}" id="table2"
                            style="left: 480px; top: 168px; position: absolute; width: 261px" width="261">
                            <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table2");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table2");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table2");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table2");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table2");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table2");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table2:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table2:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                            <ui:tableRowGroup binding="#{asignarMenu.tableRowGroup2}" id="tableRowGroup2" rows="10"
                                sourceData="#{asignarMenu.sct0022DataProvider}" sourceVar="currentRow">
                                <ui:tableColumn align="center" binding="#{asignarMenu.tableColumn4}" headerText="Menú disponibles" id="tableColumn4"
                                    sort="NMROSLCTUD" valign="middle" width="180">
                                    <ui:staticText binding="#{asignarMenu.staticText3}" id="staticText3" text="#{currentRow.value['NMROSLCTUD']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{asignarMenu.tableColumn5}" headerText="Asignar" id="tableColumn5" valign="middle" width="40">
                                    <ui:button action="#{asignarMenu.asignarMenuButton_action}" binding="#{asignarMenu.asignarMenuButton}"
                                        id="asignarMenuButton" mini="true" style="width: 48px" text="Asignar"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                        </ui:table>
                        <ui:alert binding="#{asignarMenu.alert1}" id="alert1" style="left: 264px; top: 144px; position: absolute"/>
                        <ui:messageGroup binding="#{asignarMenu.messageGroup1}" id="messageGroup1" style="left: 768px; top: 264px; position: absolute"/>
                        <ui:button action="#{asignarMenu.button2_action}" binding="#{asignarMenu.button2}" id="button2" mini="true" primary="true"
                            style="left: 72px; top: 168px; position: absolute; width: 71px" text="Cerrar"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
